package com.guyu.plugin.satoken.exception;

import com.guyu.common.core.exception.code.IErrorCode;
import lombok.AllArgsConstructor;
import lombok.Getter;


@Getter
@AllArgsConstructor
public enum SaTokenErrorCodeEnum implements IErrorCode {

    UNAUTHORIZED(2000, "权限不足"),
    FORBIDDEN(2001, "禁止访问"),
    RELOGIN(2002, "登录已失效，请重新登录"),
    NOT_PERMISSION(2003, "用户无对应权限，禁止访问"),
    NOT_ROLE(2004, "用户无对应角色，禁止访问"),
    ;

    private final Integer code;
    private final String msg;

    @Override
    public String getBizCode() {
        return "auth";
    }

}
